package com.regretbuying.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

//商品列表
public class Goods implements Serializable {
    private int goodsId;                //商品编号
    private String goodsName;           //商品名称
    private String image1;              //图1
    private String image2;              //图2
    private String image3;              //图3
    private String image4;              //图4
    private String image5;              //图5
    private Date saleTime;              //发售时间
    private String describe;            //描述
    private int recommend;              //是否推荐 默认值0 1-推荐 0-不推荐
    private int onshelf;                //是否上架 默认值0 1-推荐 0-不推荐
    private int ifdiscounts;             //是否优惠
    private String discountsdate;         //优惠时长
    private int sales;                  //销量
    private int  oneLevelMenu;        //一级菜单 非空
    private int twoLevelMenu;        //二级菜单
    private Date foundTime;             //创建时间
    private String foundThis;           //创建者

    private List<Specs> specs;          //对应的商品规格

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getImage1() {
        return image1;
    }

    public void setImage1(String image1) {
        this.image1 = image1;
    }

    public String getImage2() {
        return image2;
    }

    public void setImage2(String image2) {
        this.image2 = image2;
    }

    public String getImage3() {
        return image3;
    }

    public void setImage3(String image3) {
        this.image3 = image3;
    }

    public String getImage4() {
        return image4;
    }

    public void setImage4(String image4) {
        this.image4 = image4;
    }

    public String getImage5() {
        return image5;
    }

    public void setImage5(String image5) {
        this.image5 = image5;
    }

    public Date getSaleTime() {
        return saleTime;
    }

    public void setSaleTime(Date saleTime) {
        this.saleTime = saleTime;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public int getRecommend() {
        return recommend;
    }

    public void setRecommend(int recommend) {
        this.recommend = recommend;
    }

    public int getOnshelf() {
        return onshelf;
    }

    public void setOnshelf(int onshelf) {
        this.onshelf = onshelf;
    }

    public int getIfdiscounts() {
        return ifdiscounts;
    }

    public void setIfdiscounts(int ifdiscounts) {
        this.ifdiscounts = ifdiscounts;
    }

    public String getDiscountsdate() {
        return discountsdate.replace("-", "/");
    }

    public void setDiscountsdate(String discountsdate) {
        this.discountsdate = discountsdate;
    }

    public int getSales() {
        return sales;
    }

    public void setSales(int sales) {
        this.sales = sales;
    }

    public int getOneLevelMenu() {
        return oneLevelMenu;
    }

    public void setOneLevelMenu(int oneLevelMenu) {
        this.oneLevelMenu = oneLevelMenu;
    }

    public int getTwoLevelMenu() {
        return twoLevelMenu;
    }

    public void setTwoLevelMenu(int twoLevelMenu) {
        this.twoLevelMenu = twoLevelMenu;
    }

    public Date getFoundTime() {
        return foundTime;
    }

    public void setFoundTime(Date foundTime) {
        this.foundTime = foundTime;
    }

    public String getFoundThis() {
        return foundThis;
    }

    public void setFoundThis(String foundThis) {
        this.foundThis = foundThis;
    }

    public List<Specs> getSpecs() {
        return specs;
    }

    public void setSpecs(List<Specs> specs) {
        this.specs = specs;
    }
}
